﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.teradata
{
	// Token: 0x020000C7 RID: 199
	public class TDropMacro : TCustomSqlStatement
	{
		// Token: 0x17000152 RID: 338
		// (get) Token: 0x06000734 RID: 1844 RVA: 0x00300417 File Offset: 0x002FE617
		// (set) Token: 0x06000735 RID: 1845 RVA: 0x0030041F File Offset: 0x002FE61F
		public TObjectName macroName
		{
			get
			{
				return this._macroName;
			}
			set
			{
				this._macroName = value;
			}
		}

		// Token: 0x06000736 RID: 1846 RVA: 0x00300428 File Offset: 0x002FE628
		public TDropMacro(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstteradatadropmacro;
		}

		// Token: 0x06000737 RID: 1847 RVA: 0x0030043C File Offset: 0x002FE63C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.macroName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x06000738 RID: 1848 RVA: 0x00300479 File Offset: 0x002FE679
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000739 RID: 1849 RVA: 0x00300489 File Offset: 0x002FE689
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011D9 RID: 4569
		private TObjectName _macroName;
	}
}
